package PackageScore;

public class Admission {
    public boolean luQu(Student st){
        return st.getIntgretResult() > School.getScoreLine() || st.getIntgretResult() > 300 && st.getSports() > 96;
    }
    public void search(String str, Student[] strArr){
        boolean flag = true;
        for (Student student : strArr) {
            if (str.equals(student.getId())) {
                System.out.println("The name is " + student.getName());
                System.out.println("The id is " + student.getId());
                System.out.println("The intgretResult is " + student.getIntgretResult());
                System.out.println("The sportsResult is " + student.getSports());
                flag = false;
                break;
            }
        }
        if (flag){
            System.out.println("Cannot find the student!");
        }
    }
}
